package hu.veilingsite.server;

public class Coupon {
	private String code;
	private int aantalCredits;
	
	public Coupon(String c, int ac){
		code = c;
		aantalCredits = ac;
	}
	
	public boolean valideer(String s){
		if(code.equals(s)){
			return true;
		}
		else{
			return false;
		}
	}
	
	public int getAantal(){
		return aantalCredits;
	}
}
